package com.arrayList;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.BiConsumer;

/**
 * @PackageName:com.arrayList
 * @ClassName:ArrayListDemo
 * @Description:
 * @author:zhangzhanheng
 * @date: 2020/12/24 18:00
 */
public class ArrayListDemo {

    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        LinkedList linkedList = new LinkedList();
        HashMap<String,String> map = new HashMap<>();
        ConcurrentHashMap<String,String> mapc = new ConcurrentHashMap<>();
        LinkedHashMap<String,String> map1 = new LinkedHashMap<>();
        TreeMap<String,String> map2 = new TreeMap<>();
        Map<String,String> map3 = new HashMap<>();
        Hashtable<String,String> hashtable  = new Hashtable<>();
        map1.put("1","2");
        map1.put("3","4");
        map1.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String s, String s2) {
                System.out.println(s);
                System.out.println(s2);
            }
        });
        boolean a = true;
        String d = "1";
        String b = null;
        String c = null;
       if (!a || b != null)
           c = d;
//        System.out.println(c);
    }
}
